import store from '../store'
import router from '../router'

export default function loginOut(){
  store.dispatch('user/logout')
  store.dispatch('routePermission/clearRoutes')
  router.push({path: '/login'})
}
